@import '~antd/es/style/themes/default.less';
@import '~react-grid-layout/css/styles.css';
@import '~react-resizable/css/styles.css';

html,
body,
#root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.proLayout-wrapper {
  height: 100%;

  > .ant-layout {
    // min-height: 100vh;
    // padding-top: 65px;

    header {
      // position: fixed;
      // left: 0;
      // top: 0;
      // width: 100%;
      margin-bottom: 20px;
    }
  }
}

.ant-pro-basicLayout-content {
  margin: 0px !important;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul,
ol {
  list-style: none;
}

b {
  font-weight: initial;
}

i {
  font-style: normal;
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 兼容IE11
@media screen and(-ms-high-contrast: active), (-ms-high-contrast: none) {
  body .ant-design-pro > .ant-layout {
    min-height: 100vh;
  }
}

.ant-table-body::-webkit-scrollbar, .ant-tabs-content::-webkit-scrollbar, .ant-card-body::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
  height: 1px;
}
.ant-table-body::-webkit-scrollbar-thumb, .ant-tabs-content::-webkit-scrollbar-thumb, .ant-card-body::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: #e6f7ff;
}
.ant-table-body::-webkit-scrollbar-track, .ant-tabs-content::-webkit-scrollbar-track, .ant-card-body::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  background: #fff;
}
